package com.example.newleadcent.util;

import com.alibaba.fastjson.JSONObject;

public class GaodeAPI {

    String tmp = "http://apilocate.amap.com/position?accesstype=1&imei=352315052834187&macs=4c:48:da:25:0b:11,-59,TPLink|4c:48:da:25:1a:11,-77,TPLink&output=json&key=e3cb90123df9399052d4c18c50905cde";

    static String key="e3cb90123df9399052d4c18c50905cde";


    static  public JSONObject getLocByWifi(String imei,String mac){
        String url = "http://apilocate.amap.com/position?accesstype=1&imei="+imei+"&macs="+mac+"&output=json&key=e3cb90123df9399052d4c18c50905cde" ;

        JSONObject locJSON = HttpUtil.httpRequestJSON(url,"GET");
        return locJSON;

    }
    static  public JSONObject getLocByLBS(String imei,String bts,String nearbts){
        String url = "http://apilocate.amap.com/position?accesstype=0&imei="+imei+"&cdma=0&bts="+bts+"&nearbts="+nearbts+"&output=json&key=e3cb90123df9399052d4c18c50905cde" ;

        JSONObject locJSON = HttpUtil.httpRequestJSON(url,"GET");
        return locJSON;

    }




}
